package service

import (
	"sbd_xksite/models"
	"sbd_xksite/reposit"
)

type CompanyService struct {
	Repo reposit.CompanyReposit
}

func (service CompanyService) InsterCompanySrv(Xksite models.Xksite) (is bool, err error) {
	is, err = service.Repo.IsCompanyOne(Xksite.RowNumber)
	if err != nil {
		return
	}
	is, err = service.Repo.InsertCompanyOne(Xksite)
	if err != nil {
		return
	}
	return
}
